function sesionFrmSubmit(url) {
	var sesionFrm = dijit.byId("sesionForm");
	if (sesionFrm.isValid()) {
		sesionFrm.method="get";
		sesionFrm.action=url;
		sesionFrm.submit();
	}
	return false;
}

function iniciarSesion() {
	var sesionFrm = dijit.byId("sesionForm");
	if (sesionFrm.isValid()) {
		sesionFrm.submit();
	}
	return true;
}

function cerrarSesion() {
	document.location.href = baseUrl + "/auth/logout"
}

function inscripcion() {
	return sesionFrmSubmit(baseUrl + "/inscripcion/");
}

function recordarContrasena() {
	return sesionFrmSubmit(baseUrl + "/inscripcion/recordarContrasena");
}

function validacion() {
	return sesionFrmSubmit(baseUrl + "/inscripcion/validacion");
}

